package com.xz.knowledgeDuplication.spring.test.service;

import com.xz.knowledgeDuplication.spring.context.*;

/**
 * @author 召
 * @date 2022-12-12 21:18:52
 */
@Component
@Scope("prototype")
public class UserService implements InitializingBean, BeanNameAware {

    @Autowired
    private OrderService orderService;

    private String beanName;

    public void test() {
        System.out.println(orderService);
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("初始化");
    }

    @Override
    public void setBeanName(String name) {
        this.beanName = name;
    }
}
